#pragma once
#include<unistd.h>
#include<cstdlib>
#include<ctime>
#include<cstdio>
#include<sys/types.h>
#include<pthread.h>
#include<iostream>
#include<vector>
#include<semaphore.h>
#include<functional>
using std::cout;
using std::endl;